package com.fw.system.web.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 公告、炸弹护盾使用情况表
 * </p>
 *
 * @author ${author}
 * @since 2023-03-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TbNotice对象", description="公告、炸弹护盾使用情况表")
public class TbNotice extends Model<TbNotice> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    @ApiModelProperty(value = "公告标题")
    @TableField("notice_title")
    private String noticeTitle;

    @ApiModelProperty(value = "公告内容")
    @TableField("notice_content")
    private String noticeContent;

    @ApiModelProperty(value = "用户编号")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "对方编号")
    @TableField("game_player_user_id")
    private String gamePlayerUserId;

    @ApiModelProperty(value = "公告类型 1炸弹 2护盾")
    @TableField("notice_type")
    private Integer noticeType;

    @ApiModelProperty(value = "1护盾生效 0正常轰炸")
    @TableField("is_state")
    private Integer isState;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
